import { getCurrentInstance } from 'vue'

// 获取vue globalProperties
export function getGlobal() {
  const {
    appContext: {
      config: { globalProperties: global },
    },
  } = getCurrentInstance()
  return global
}
